package cn.tedu.egmybatis1.mapper;

import cn.tedu.egmybatis1.pojo.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface ProductMapper {
    //@Insert("insert into product(title,price,stock) values(#{title},#{price},#{stock})")
    void insert(Product product);

    Product selectById(Integer id);

    int deleteById(Integer id);

    int deleteByIds(ArrayList<Long> ids);

    int dynamicById(Product product);
}
